import 'package:flutter/material.dart';

class TutorialHome extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    // Scaffold是Material中最重要的组件
    return new Scaffold(
      appBar: new AppBar(
        leading: new IconButton(
            icon: new Icon(Icons.menu),
            tooltip: '导航的目录',
            onPressed: null
        ),
        title: new Text('案例标题'),
        actions: <Widget>[
          new IconButton(
              icon: new Icon(Icons.search),
              tooltip: '搜索',
              onPressed: null
          ),
        ],
      ),
      //body占屏幕的大部分
      body: new Center(
        child: new Text('hello world'),
      ),
      // 浮动的添加按钮
      floatingActionButton: new FloatingActionButton(
          tooltip: '添加',
          child: new Icon(Icons.add),
          onPressed: null
      ),
    );
  }

}